package com.torfox.services;

public class ServiceException extends Exception
{

	private static final long serialVersionUID = 1L;

	private String localizedMessageId;

	public ServiceException()
	{
		super();
	}

	public ServiceException(final String message, final Throwable cause)
	{
		super(message, cause);
	}

	public ServiceException(final String message, final Throwable cause, final String localizedMessageId)
	{
		super(message, cause);
		this.setLocalizedMessageId(localizedMessageId);
	}

	public ServiceException(final String message)
	{
		super(message);
	}

	public ServiceException(final String message, final String localizedMessageId)
	{
		super(message);
		this.setLocalizedMessageId(localizedMessageId);
	}

	public ServiceException(final Throwable cause, final String localizedMessageId)
	{
		super(cause);
		this.setLocalizedMessageId(localizedMessageId);
	}

	public ServiceException(final Throwable cause)
	{
		super(cause);
	}

	public void setLocalizedMessageId(final String localizedMessageId)
	{
		this.localizedMessageId = localizedMessageId;
	}

	public String getLocalizedMessageId()
	{
		return localizedMessageId;
	}

}
